package storage.record;

public class RID {
	private int blknum;
	private int id;
	
	public RID(int b,int i){
		this.blknum = b;
		this.id = i;
	}
	
	public int blocknum(){
		return blknum;
	}
	
	public int id(){
		return id;
	}
	
	public boolean equals(RID r){
		return this.blknum == r.blknum && this.id == r.id;
	}
	
	public String toString(){
		return "[" + this.blknum + "," + this.id + "]";
	}

}
